<?php defined('SYSPATH') or die('No direct access allowed.');


class Model_Field extends ORM {

	// Relationships
	protected $_has_many = array('users' => array('through' => 'fields_users'));
        
        public function get_all()
        {
            $all = $this->find_all()->as_array('id', 'name');
            
            foreach($all as &$one)
            {
                $one = __($one);
            }
            asort($all);
            return $all;
        }
}